package com.achievement.mappings;

import com.achievement.domain.bo.MedicineBO;
import com.achievement.domain.dto.MedicineDTO;
import com.achievement.domain.entity.MedicineEntity;
import com.achievement.domain.vo.MedicineVO;
import org.mapstruct.Mapper;

@Mapper(componentModel = "spring")
public interface MedicineMapping {

    MedicineVO dto2Vo(MedicineDTO dto);

    MedicineBO dto2Bo(MedicineDTO dto);

    MedicineEntity dto2Entity(MedicineDTO dto);

    MedicineDTO vo2Dto(MedicineVO vo);

    MedicineVO bo2Vo(MedicineBO bo);
    MedicineEntity bo2Entity(MedicineBO bo);

    MedicineDTO entity2Dto(MedicineEntity dto);

    MedicineVO entity2Vo(MedicineEntity dto);

    MedicineBO entity2Bo(MedicineEntity dto);

    /*@Mappings(
            {
                    @Mapping(source = "id", target = "id")
            }
    )
    MedicineDTO bo2Dto(MedicineBO bo);
*/


}
